package com.neusoft.neuiotms.dcam.fixed.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.neusoft.bizcore.web.jpa.model.AbstractModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

/**
 * 资产
 *
 * @author sunchf
 */
@Getter
@Setter
@Entity
@Table(name = "neuiot_fixed_maintenance")
@org.hibernate.annotations.Table(appliesTo = "neuiot_fixed_maintenance", comment = "固定资产维保表")
public class Maintenance extends AbstractModel {

    private static final long serialVersionUID = 1L;

    /** 维保开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Comment("datetime NULL DEFAULT NULL COMMENT '维保开始时间'")
    private Date maintenanceStart;

    /** 维保结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Comment("datetime NULL DEFAULT NULL COMMENT '维保结束时间'")
    private Date maintenanceEnd;

    /** 维保负责人 */
    @Length(max = 255, message = "维保负责人不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '维保负责人'")
    private String maintenanceUserId;

    /** 维保负责人姓名 */
    @Length(max = 255, message = "维保负责人不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL DEFAULT NULL COMMENT '维保负责人'")
    private String maintenanceUserName;

    /** 维保说明 */
    @Length(max = 1023, message = "维保说明不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(1023) NULL DEFAULT NULL COMMENT '维保负责人'")
    private String maintenanceNote;

}
